.rich-editor-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Arial, sans-serif;
}

.theme-dark {
    background-color: #333;
    color: #fff;
}

.toolbar {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.toolbar button {
    padding: 6px 10px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    min-width: 32px;
}

.toolbar button:hover {
    background-color: #f0f0f0;
}

.toolbar button.active {
    background-color: #e0e0e0;
}

.theme-dark .toolbar button {
    border-color: #666;
    color: #fff;
}

.theme-dark .toolbar button:hover {
    background-color: #444;
}

.editor-content {
    padding: 12px;
    overflow-y: auto;
    outline: none;
}

.editor-content[data-placeholder]:empty:before {
    content: attr(data-placeholder);
    color: #999;
}

.disabled .editor-content {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .toolbar {
        gap: 4px;
        padding: 4px;
    }

    .toolbar button {
        padding: 4px 6px;
        min-width: 28px;
    }
}